
<script>
  window.onload = function() {
    var url = window.location.host;
    if(url.includes('localhost')){
      window.location.href = `http://${url}/login.html`; // 替换为您要跳转的 URL
    }else{
      window.location.href = `http://${url}/login`; // 替换为您要跳转的 URL
    }
  };
</script>